/* 提现管理 */
/* 充值记录 */
const resultEnum = require('../utils/resultEnum').ResultEnum;
const Mock = new(require('../utils/mock')).Mocks();
/* 查询提现管理信息 */
function selectWithdrawInfo(ctx, next) {
  try {
    const params = {
      ...ctx.query
    };

    ctx.success(resultEnum.GET_SUCCESS.code, resultEnum.GET_SUCCESS.msg, Mock.getWithdrawAll())
  } catch (error) {
    ctx.error(resultEnum.GET_ERROR.code, resultEnum.GET_ERROR.msg)
  }
}

/* 查询充值记录信息 */
function selectRechargeInfo(ctx, next) {
  try {
    const params = {
      ...ctx.query
    };

    ctx.success(resultEnum.GET_SUCCESS.code, resultEnum.GET_SUCCESS.msg, Mock.getRechargeAll())
  } catch (error) {
    ctx.error(resultEnum.GET_ERROR.code, resultEnum.GET_ERROR.msg)
  }
}

module.exports = {
  selectWithdrawInfo,
  selectRechargeInfo
}